[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
DbfValid(cName,oGet,cDbfName,[nOrder],bBlock,[lEmpty],[aFields]) --> true/false:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Functions:
~~~~~~~~~~
Current value Get:VarGet() is validated, if not valid the window with
valid data to select (from database cDbfName) is diplayed.Selected value is
written to Get object (Get:VarPut(..)). When validating of the Get:VarGet()
the database cDbfName is seeked. After the end of search is the status of
databases before the activating of this command restored.
Parameter description:
~~~~~~~~~~~~~~~~~~~~~~
cName: displayed data window name
oGet: clipper object of GET class
cDbfName: seeked database alias name
nOrder: if set then before the seek is the SET ORDER TO nOrder command
performed(setting of the active index).
bBlock: code block to return the value for storing to Get object.
When performing this code block the selected database is
cDbfName and RecNo() points to selected record.
lEmpty: if true the valid data for Get:VarGet is also the result of
function Empty(Get:VarGet()), otherwise Get:VarGet() must be
found in the database cDbfName.
aFields: Array of strings with field_names (column names) of database
cDbfName, whitch are to be displayed for selection, if invalid
field value was entered.
Return value:
~~~~~~~~~~~~~
true if the data value is valid
false if the data value is not valid
Remarks:
~~~~~~~~
This function uses the object of UpBrowse class.
Source code is in file Object3.prg
See Also:
AValid
UpDBrowse
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson